package com.hulk.boot.protocol.exceptionhandler;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.ui.Model;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import com.google.common.base.Throwables;

import lombok.extern.slf4j.Slf4j;

/**
 * @author cmt
 * 
 */
@Slf4j
@ControllerAdvice
public class ProtocolExceptionAdvice {

	
	
	  @ExceptionHandler(Exception.class) 
	  @ResponseBody
	  public Model handleException(HttpServletRequest request, HttpServletResponse Response,  Exception  e) {  
	          
	     
	       return null;  
	   }  

	

	

	

}